package com.Controller;
import com.Service.AuthorApplyService;
import com.pojo.AuthorApply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.sql.SQLException;
@Controller
@RequestMapping("/apply")
public class AuthorApplyController {
    @Autowired
    private AuthorApplyService applyService;
    @PostMapping("insert")
    @ResponseBody
    public void insertInfo(@RequestBody AuthorApply authorApply) throws SQLException {
        applyService.insertInfo(authorApply);
    }
}
